package com.hsp.poly_.detail;

public class PolyDetail03 {
    public static void main(String[] args) {
        BB bb = new BB();
        System.out.println(bb instanceof AA);

        AA aa = new BB();//判断某类型的运行类型是否是某类型的子类型或某类型
        System.out.println(aa instanceof AA);
        System.out.println(aa instanceof BB);
    }
}

class AA{}
class CC{}
class BB extends AA{}
